load("@rules_cc//cc:defs.bzl", "cc_library")

cc_library(
    name = "dylib",
    hdrs = ["include/dylib.hpp"],
    copts = ["-std=c++11"],
    includes = ["include"],
    linkopts = select({
        "@platforms//os:linux": ["-ldl"],
        "@platforms//os:macos": ["-ldl"],
        "//conditions:default": [],
    }),
    visibility = ["//visibility:public"],
)
